package com.acoffee.java;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author acoffee
 * @create 2021-11-11 11:38
 */
public class TestPerson {

    @Test
    public void testPerson(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Person person = context.getBean("person", Person.class);
        System.out.println(person);
    }
}
